import axios from '../axios'

/*
 * 附件管理模块
 */

// 保存
export const save = (data) => {
    return axios({
        url: '/sysFile/upload',
        method: 'post',
        data
    })
}
// 删除
export const remove = (data) => {
    return axios({
        url: '/sysFile/remove',
        method: 'post',
        data:data
    })
}
// 分页查询
export const findList = (data) => {
    return axios({
        url: '/sysFile/findList',
        method: 'get',
        params:data
    })
}





// 下载
export const download = (data) => {
  return axios({
      url: '/sysFile/download',
      method: 'post',
      data:data,
      responseType: 'blob'
  })
}

// 图片上传
export const uploadImg = (data) => {
  return axios({
      url: '/sysFile/uploadImg',
      method: 'post',
      data:data
  })
}
